<?php
// +----------------------------------------------------------------------
// | 获取产品及其相关信息类
// | 
// +----------------------------------------------------------------------
// | Author: hwf
// +----------------------------------------------------------------------

/**
 * 获取产品及其相关信息类
 * @author hwf
 *
 * 查询信息默认的都是根据产品ID做索引
 */
class Productinfo {
	private $dao;
	private  $_field;
	
	/**
	 * 初始化
	 */
	function __construct(){
		$this->$dao = M("Product");
	}
	
	/**
     * 
     */
    function get($map) {
    	return $this->$dao->where($map)->select();
    }
    
    function get_join($model, $model_map='', $product_map=''){
    	$info_m = M($model);
    	$info_m->where($map)->select();
    }
    
    function get_info_all($map){
    	$model = M('');
    	$model->query("
    		select * from product left join 		
    	");
    	$info_m->where($map)->select();
    }
    
    function get_cat(){
    	
    }
    
    function get_bind(){
    	
    }

    function get_suppliers(){
    	 
    }
    
    function get_price(){
    	 
    }
}








